#ifndef DXYINTERPRETER_H
#define DXYINTERPRETER_H

#include "TextReader.h"

class CDXYInterpreter
	{
	private:
		CTextReader *Reader;
		int CurX, CurY;

	public:
		enum Error {NoErr=0, Command=1, Number=2, Delim=3, Text=4};

	public:
		virtual void LineStart(int x, int y) = 0;
		virtual void LineDraw(int x, int y) = 0;
		virtual void LineEnd() = 0;
		virtual void ArcDraw(int x, int y, int r, int w1, int w2, int wd) = 0;
		virtual void LineType(int i) = 0;
		virtual void LineTypeFactor(int i) = 0;
		virtual void TextDraw(int x, int y, char *s) = 0;
		virtual void TextSize(int i) = 0;
		virtual void TextRotation(int i) = 0;
		virtual void MarkDraw(int x, int y, int type) = 0;
		virtual void SelectColor(int i) = 0;

		CDXYInterpreter(CTextReader &AReader);

		Error DoCommand();
	} ;


#endif //DXYINTERPRETER_H